package org.zhadoop.stream.cql.semanticanalyzer.parser.visitor;

import org.zhadoop.stream.cql.semanticanalyzer.parser.CQLParser.ExpressionContext;
import org.zhadoop.stream.cql.semanticanalyzer.parser.context.CaseWhenBodyThenBodyContext;

public class CaseWhenBodyThenBodyVisitor extends AbsCQLParserBaseVisitor<CaseWhenBodyThenBodyContext>{

	private CaseWhenBodyThenBodyContext context = null;
	
	public CaseWhenBodyThenBodyVisitor() {
		context =new CaseWhenBodyThenBodyContext();
	}
	
	@Override
	protected CaseWhenBodyThenBodyContext defaultResult() {
		return context;
	}
	
	@Override
	public CaseWhenBodyThenBodyContext visitExpression(ExpressionContext ctx) {
		ExpressionVisitor visitor = new ExpressionVisitor();
        context.setExpression(visitor.visit(ctx));
        return context;
	}

}
